package com.bootdo.common.utils;

public class CodeMsg {
	private int retCode;
	private String message;
	// 按照模块定义CodeMsg
	// 通用异常
	public static CodeMsg SUCCESS = new CodeMsg(0,"success");
	public static CodeMsg SERVER_EXCEPTION = new CodeMsg(500100,"服务端异常");
	public static CodeMsg PARAMETER_ISNULL = new CodeMsg(500101,"输入参数为空");
	// 业务异常
	public static CodeMsg USER_NOT_EXSIST = new CodeMsg(500102,"用户不存在"); 
	public static CodeMsg ONLINE_USER_OVER = new CodeMsg(500103,"在线用户数超出允许登录的最大用户限制。"); 
	public static CodeMsg SESSION_NOT_EXSIST =  new CodeMsg(500104,"不存在离线session数据");
	public static CodeMsg NOT_FIND_DATA = new CodeMsg(500105,"查找不到对应数据");
	public static CodeMsg NOT_FIND_USER = new CodeMsg(500106,"用户名或密码错误");
	public static CodeMsg NOT_FIND_USER1 = new CodeMsg(500107,"请正确退出");
	public static CodeMsg NOT_FIND_ONEUSER = new CodeMsg(500107,"用户已登录，请使用其他用户登录");
	public static CodeMsg USER_RZSB = new CodeMsg(500108,"认证失败");
	public static CodeMsg USER_DLSQ = new CodeMsg(500109,"请先登录进行授权");
	public static CodeMsg USER_HQYHSB = new CodeMsg(500110,"获取用户微信信息失败");
	public static CodeMsg FILE_UP_STATUS = new CodeMsg(500108,"上传失败");
	
	public static CodeMsg TASK_NOT_SHIRO = new CodeMsg(500112,"没权限访问");
	public static CodeMsg TASK_SWITCH_STATUS = new CodeMsg(500109,"任务已被暂停，请联系管理员");
	
	public static CodeMsg TASK_LIST_STATUS = new CodeMsg(500110,"该任务暂没有标注信息");
	
	public static CodeMsg TASK_NOT_BZ = new CodeMsg(500112,"任务被领完了");
	
	public static CodeMsg TASK_NOT_EDIT = new CodeMsg(500113,"不可编辑");
	
	public static CodeMsg TASK_NOT_BZ2 = new CodeMsg(500114,"没有可提交的任务");
	
	public static CodeMsg TASK_HAVE_BZ = new CodeMsg(500115,"有任务正在进行");
	
	public static CodeMsg TASK_HAVE_NOT_BZ = new CodeMsg(500116,"没有做完，不可提交");
	
	public static CodeMsg TASK_HAVE_NOT_FG_BZ = new CodeMsg(500117,"没有可返工的任务");
	
	public static CodeMsg TASK_HAVE_NOT_FG_BZ1 = new CodeMsg(500118,"数据已经分配完");
	
	
	public static CodeMsg GSSQ_CFSQ = new CodeMsg(500119,"该手机号已被申请！");
	public static CodeMsg GSSQ_STATUS = new CodeMsg(500120,"申请失败！");
	private CodeMsg(int retCode, String message) {
		this.retCode = retCode;
		this.message = message;
	}
	public int getRetCode() {
		return retCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}
